package com.show.service.emp;

import com.show.dao.sys_emp.EmpRoleRespository;
import com.show.dto.sys_emp.SysEmpRole;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.transaction.Transactional;

/**
 * Created by yxd on 2018/2/5.
 */
@Service
@Transactional
public class EmpRoleService {

    @Autowired
    private EmpRoleRespository empRoleRespository;

    /**
     * 添加人员--角色
     *@param SysEmpOrg
     * @author yxd
     * @time 2018年2月5日
     */
    public void save(SysEmpRole info){
        empRoleRespository.saveAndFlush(info);
    }
}
